package cn.com.cifi.mars.constant;

/**
* @Description:  楼栋计划时间节点枚举
* @Author: wy
* @Date:
*/

public enum NodeEnum {

    JT_LCB_00002("JT-LCB-00002","开始垫层施工（大区开工）"),
    JT_YJ_00001("JT-YJ-00001","主体施工达到预售条件"),
    JT_YJ_00002("JT-YJ-00002","取得《预售许可证》"),
    JT_LCB_00003("JT-LCB-00003","开盘预售"),
    JT_YJ_00003("JT-YJ-00003","完成主体结构封顶"),
    JT_LCB_00004("JT-LCB-00004","取得竣工备案证"),
    JT_LCB_00006("JT-LCB-00006","完成结转"),
    JT_LCB_00005("JT-LCB-00005","实际交付"),
    NODE_000("NODE_000","合同交付")
    ;

    private String key;
    private String value;

    NodeEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }


    public static String getValueByKey(String key){
        for(NodeEnum nodeEnum:NodeEnum.values()){
            if(key.equals(nodeEnum.getValue())){
                return nodeEnum.getKey();
            }
        }
        return  null;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }
    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }



}
